/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * JInternalFrameFactura.java
 *
 * Created on May 3, 2010, 8:31:27 AM
 */

package tiendagui.internal.factura;

import controller.ControllerVentaArticulo;
import controller.utils.ControllerTable;
import controller.utils.ManagerTabla;
import java.util.Calendar;
import model.ModelVentaArticulo;
import tiendagui.internal.JInternalFrameImpl;

/**
 *
 * @author Jhonny
 */
public class JInternalFrameFactura extends JInternalFrameImpl {

    private ManagerTabla managerTabla;
    /** Creates new form JInternalFrameFactura */
    public JInternalFrameFactura(ModelVentaArticulo model) {
        controller = new ControllerVentaArticulo(this,model);
        initComponents();
        managerTabla = new ManagerTabla(tabla, buttonAgregar, buttonEliminar);
        managerTabla.setColumnId(1);
        managerTabla.setController((ControllerTable) controller);
        
    }


    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        buttonGroupCondicionesVenta = new javax.swing.ButtonGroup();
        buttonGroupTipoIva = new javax.swing.ButtonGroup();
        panelDatosCliente = new javax.swing.JPanel();
        labelNombre = new javax.swing.JLabel();
        textFieldNombre = new javax.swing.JTextField();
        labelApellido = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        labelDomicilio = new javax.swing.JLabel();
        textFieldDomicilio = new javax.swing.JTextField();
        label1Telefono = new javax.swing.JLabel();
        textFieldTelefono = new javax.swing.JTextField();
        panelIva = new javax.swing.JPanel();
        jPanel5 = new javax.swing.JPanel();
        jPanel8 = new javax.swing.JPanel();
        labelIva = new javax.swing.JLabel();
        checkBoxResponsableInscripto = new javax.swing.JCheckBox();
        checkBoxExcento = new javax.swing.JCheckBox();
        checkBoxNoResponsable = new javax.swing.JCheckBox();
        checkBoxConsumidorFinal = new javax.swing.JCheckBox();
        panelCondicionesVenta = new javax.swing.JPanel();
        label1CondicionesVenta = new javax.swing.JLabel();
        radioButtonContado = new javax.swing.JRadioButton();
        radioButtonCtaCte = new javax.swing.JRadioButton();
        panelCUIT = new javax.swing.JPanel();
        labelCUIT = new javax.swing.JLabel();
        textFieldCUIT = new javax.swing.JTextField();
        labelIngresosBrutos = new javax.swing.JLabel();
        textFieldIngresosBrutos = new javax.swing.JTextField();
        labelRemito = new javax.swing.JLabel();
        textFieldRemito = new javax.swing.JTextField();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        jPanel3 = new javax.swing.JPanel();
        comboBoxTipoFactura = new javax.swing.JComboBox();
        labelNombreEmpresa = new javax.swing.JLabel();
        panelLogo = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        panelDatosFactura = new javax.swing.JPanel();
        labelTituloFactura = new javax.swing.JLabel();
        labelNumero = new javax.swing.JLabel();
        labelFecha = new javax.swing.JLabel();
        formattedTextFieldFecha = new javax.swing.JFormattedTextField();
        textFieldNumeroFactura = new javax.swing.JTextField();
        panelItems = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tabla = new javax.swing.JTable();
        buttonAgregar = new javax.swing.JButton();
        buttonEliminar = new javax.swing.JButton();
        panelTotal = new javax.swing.JPanel();
        labelTotal = new javax.swing.JLabel();
        labelSonPesos = new javax.swing.JLabel();
        textFieldTotalPesos = new javax.swing.JTextField();
        textFieldSubTotal = new javax.swing.JTextField();
        labelSubTotal = new javax.swing.JLabel();
        labelIvaPesos = new javax.swing.JLabel();
        textFieldIva = new javax.swing.JTextField();
        buttonCancelar = new javax.swing.JButton();
        buttonAceptar = new javax.swing.JButton();

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(tiendagui.TiendaGUIApp.class).getContext().getResourceMap(JInternalFrameFactura.class);
        jLabel2.setText(resourceMap.getString("jLabel2.text")); // NOI18N
        jLabel2.setName("jLabel2"); // NOI18N

        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        setClosable(true);
        setTitle(resourceMap.getString("Form.title")); // NOI18N
        setName("Form"); // NOI18N

        panelDatosCliente.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder()));
        panelDatosCliente.setName("panelDatosCliente"); // NOI18N

        labelNombre.setText(resourceMap.getString("labelNombre.text")); // NOI18N
        labelNombre.setName("labelNombre"); // NOI18N

        textFieldNombre.setText(resourceMap.getString("textFieldNombre.text")); // NOI18N
        textFieldNombre.setName("textFieldNombre"); // NOI18N

        labelApellido.setText(resourceMap.getString("labelApellido.text")); // NOI18N
        labelApellido.setName("labelApellido"); // NOI18N

        jTextField2.setText(resourceMap.getString("jTextField2.text")); // NOI18N
        jTextField2.setName("jTextField2"); // NOI18N

        labelDomicilio.setText(resourceMap.getString("labelDomicilio.text")); // NOI18N
        labelDomicilio.setName("labelDomicilio"); // NOI18N

        textFieldDomicilio.setText(resourceMap.getString("textFieldDomicilio.text")); // NOI18N
        textFieldDomicilio.setName("textFieldDomicilio"); // NOI18N

        label1Telefono.setText(resourceMap.getString("label1Telefono.text")); // NOI18N
        label1Telefono.setName("label1Telefono"); // NOI18N

        textFieldTelefono.setText(resourceMap.getString("textFieldTelefono.text")); // NOI18N
        textFieldTelefono.setName("textFieldTelefono"); // NOI18N

        javax.swing.GroupLayout panelDatosClienteLayout = new javax.swing.GroupLayout(panelDatosCliente);
        panelDatosCliente.setLayout(panelDatosClienteLayout);
        panelDatosClienteLayout.setHorizontalGroup(
            panelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDatosClienteLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelNombre)
                    .addComponent(labelApellido)
                    .addComponent(labelDomicilio)
                    .addComponent(label1Telefono))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(textFieldTelefono, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
                    .addComponent(textFieldDomicilio, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextField2, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
                    .addComponent(textFieldNombre, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE))
                .addGap(388, 388, 388))
        );
        panelDatosClienteLayout.setVerticalGroup(
            panelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDatosClienteLayout.createSequentialGroup()
                .addGroup(panelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(textFieldNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelNombre))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelApellido))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(textFieldDomicilio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelDomicilio))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDatosClienteLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(textFieldTelefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(panelDatosClienteLayout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addComponent(label1Telefono)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panelIva.setName("panelIva"); // NOI18N

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder()));
        jPanel5.setName("jPanel5"); // NOI18N

        jPanel8.setName("jPanel8"); // NOI18N

        labelIva.setText(resourceMap.getString("labelIva.text")); // NOI18N
        labelIva.setName("labelIva"); // NOI18N

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(labelIva)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addComponent(labelIva)
                .addContainerGap(12, Short.MAX_VALUE))
        );

        checkBoxResponsableInscripto.setText(resourceMap.getString("checkBoxResponsableInscripto.text")); // NOI18N
        checkBoxResponsableInscripto.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        checkBoxResponsableInscripto.setName("checkBoxResponsableInscripto"); // NOI18N

        checkBoxExcento.setText(resourceMap.getString("checkBoxExcento.text")); // NOI18N
        checkBoxExcento.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        checkBoxExcento.setName("checkBoxExcento"); // NOI18N

        checkBoxNoResponsable.setText(resourceMap.getString("checkBoxNoResponsable.text")); // NOI18N
        checkBoxNoResponsable.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        checkBoxNoResponsable.setName("checkBoxNoResponsable"); // NOI18N

        checkBoxConsumidorFinal.setText(resourceMap.getString("checkBoxConsumidorFinal.text")); // NOI18N
        checkBoxConsumidorFinal.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        checkBoxConsumidorFinal.setName("checkBoxConsumidorFinal"); // NOI18N

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(checkBoxResponsableInscripto)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(checkBoxExcento)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(checkBoxNoResponsable)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(checkBoxConsumidorFinal)))
                .addContainerGap(148, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(checkBoxResponsableInscripto)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkBoxExcento)
                    .addComponent(checkBoxNoResponsable)
                    .addComponent(checkBoxConsumidorFinal)))
        );

        panelCondicionesVenta.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder()));
        panelCondicionesVenta.setName("panelCondicionesVenta"); // NOI18N

        label1CondicionesVenta.setText(resourceMap.getString("label1CondicionesVenta.text")); // NOI18N
        label1CondicionesVenta.setName("label1CondicionesVenta"); // NOI18N

        radioButtonContado.setText(resourceMap.getString("radioButtonContado.text")); // NOI18N
        radioButtonContado.setName("radioButtonContado"); // NOI18N

        radioButtonCtaCte.setText(resourceMap.getString("radioButtonCtaCte.text")); // NOI18N
        radioButtonCtaCte.setName("radioButtonCtaCte"); // NOI18N

        javax.swing.GroupLayout panelCondicionesVentaLayout = new javax.swing.GroupLayout(panelCondicionesVenta);
        panelCondicionesVenta.setLayout(panelCondicionesVentaLayout);
        panelCondicionesVentaLayout.setHorizontalGroup(
            panelCondicionesVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCondicionesVentaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(label1CondicionesVenta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(radioButtonContado)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(radioButtonCtaCte)
                .addContainerGap(177, Short.MAX_VALUE))
        );
        panelCondicionesVentaLayout.setVerticalGroup(
            panelCondicionesVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCondicionesVentaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(panelCondicionesVentaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(label1CondicionesVenta)
                    .addComponent(radioButtonContado)
                    .addComponent(radioButtonCtaCte)))
        );

        panelCUIT.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder()));
        panelCUIT.setName("panelCUIT"); // NOI18N

        labelCUIT.setText(resourceMap.getString("labelCUIT.text")); // NOI18N
        labelCUIT.setName("labelCUIT"); // NOI18N

        textFieldCUIT.setText(resourceMap.getString("textFieldCUIT.text")); // NOI18N
        textFieldCUIT.setName("textFieldCUIT"); // NOI18N

        labelIngresosBrutos.setText(resourceMap.getString("labelIngresosBrutos.text")); // NOI18N
        labelIngresosBrutos.setName("labelIngresosBrutos"); // NOI18N

        textFieldIngresosBrutos.setText(resourceMap.getString("textFieldIngresosBrutos.text")); // NOI18N
        textFieldIngresosBrutos.setName("textFieldIngresosBrutos"); // NOI18N

        labelRemito.setText(resourceMap.getString("labelRemito.text")); // NOI18N
        labelRemito.setName("labelRemito"); // NOI18N

        textFieldRemito.setText(resourceMap.getString("textFieldRemito.text")); // NOI18N
        textFieldRemito.setName("textFieldRemito"); // NOI18N

        javax.swing.GroupLayout panelCUITLayout = new javax.swing.GroupLayout(panelCUIT);
        panelCUIT.setLayout(panelCUITLayout);
        panelCUITLayout.setHorizontalGroup(
            panelCUITLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCUITLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelCUITLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelCUITLayout.createSequentialGroup()
                        .addComponent(labelCUIT)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(textFieldCUIT, javax.swing.GroupLayout.DEFAULT_SIZE, 173, Short.MAX_VALUE))
                    .addGroup(panelCUITLayout.createSequentialGroup()
                        .addComponent(labelIngresosBrutos)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(textFieldIngresosBrutos, javax.swing.GroupLayout.DEFAULT_SIZE, 167, Short.MAX_VALUE))
                    .addGroup(panelCUITLayout.createSequentialGroup()
                        .addComponent(labelRemito)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(textFieldRemito, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)))
                .addContainerGap())
        );
        panelCUITLayout.setVerticalGroup(
            panelCUITLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCUITLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelCUITLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelCUIT)
                    .addComponent(textFieldCUIT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelCUITLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelIngresosBrutos)
                    .addComponent(textFieldIngresosBrutos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelCUITLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelRemito)
                    .addComponent(textFieldRemito, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout panelIvaLayout = new javax.swing.GroupLayout(panelIva);
        panelIva.setLayout(panelIvaLayout);
        panelIvaLayout.setHorizontalGroup(
            panelIvaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelIvaLayout.createSequentialGroup()
                .addGroup(panelIvaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(panelCondicionesVenta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelCUIT, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        panelIvaLayout.setVerticalGroup(
            panelIvaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelIvaLayout.createSequentialGroup()
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelCondicionesVenta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
            .addComponent(panelCUIT, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jLayeredPane1.setName("jLayeredPane1"); // NOI18N

        jPanel3.setName("jPanel3"); // NOI18N

        comboBoxTipoFactura.setFont(resourceMap.getFont("comboBoxTipoFactura.font")); // NOI18N
        comboBoxTipoFactura.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "A", "B", "C" }));
        comboBoxTipoFactura.setName("comboBoxTipoFactura"); // NOI18N
        comboBoxTipoFactura.addItemListener(new java.awt.event.ItemListener() {
            public void itemStateChanged(java.awt.event.ItemEvent evt) {
                comboBoxTipoFacturaItemStateChanged(evt);
            }
        });

        labelNombreEmpresa.setText(resourceMap.getString("labelNombreEmpresa.text")); // NOI18N
        labelNombreEmpresa.setName("labelNombreEmpresa"); // NOI18N

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addComponent(comboBoxTipoFactura, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(39, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(0, 41, Short.MAX_VALUE)
                    .addComponent(labelNombreEmpresa)
                    .addGap(0, 42, Short.MAX_VALUE)))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(comboBoxTipoFactura, javax.swing.GroupLayout.PREFERRED_SIZE, 37, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(63, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(0, 43, Short.MAX_VALUE)
                    .addComponent(labelNombreEmpresa)
                    .addGap(0, 43, Short.MAX_VALUE)))
        );

        jPanel3.setBounds(190, 2, 110, 100);
        jLayeredPane1.add(jPanel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        panelLogo.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder()));
        panelLogo.setName("panelLogo"); // NOI18N

        jLabel1.setText(resourceMap.getString("jLabel1.text")); // NOI18N
        jLabel1.setName("jLabel1"); // NOI18N

        jLabel3.setText(resourceMap.getString("jLabel3.text")); // NOI18N
        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setText(resourceMap.getString("jLabel4.text")); // NOI18N
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel5.setText(resourceMap.getString("jLabel5.text")); // NOI18N
        jLabel5.setName("jLabel5"); // NOI18N

        javax.swing.GroupLayout panelLogoLayout = new javax.swing.GroupLayout(panelLogo);
        panelLogo.setLayout(panelLogoLayout);
        panelLogoLayout.setHorizontalGroup(
            panelLogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelLogoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelLogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jLabel3)
                    .addComponent(jLabel4)
                    .addComponent(jLabel5))
                .addContainerGap(70, Short.MAX_VALUE))
        );
        panelLogoLayout.setVerticalGroup(
            panelLogoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelLogoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel4)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel5)
                .addContainerGap())
        );

        panelLogo.setBounds(0, 0, 240, 110);
        jLayeredPane1.add(panelLogo, javax.swing.JLayeredPane.DEFAULT_LAYER);

        panelDatosFactura.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder()));
        panelDatosFactura.setName("panelDatosFactura"); // NOI18N

        labelTituloFactura.setFont(resourceMap.getFont("labelTituloFactura.font")); // NOI18N
        labelTituloFactura.setText(resourceMap.getString("labelTituloFactura.text")); // NOI18N
        labelTituloFactura.setName("labelTituloFactura"); // NOI18N

        labelNumero.setText(resourceMap.getString("labelNumero.text")); // NOI18N
        labelNumero.setName("labelNumero"); // NOI18N

        labelFecha.setText(resourceMap.getString("labelFecha.text")); // NOI18N
        labelFecha.setName("labelFecha"); // NOI18N

        formattedTextFieldFecha.setEditable(false);
        formattedTextFieldFecha.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.DateFormatter()));
        formattedTextFieldFecha.setText(resourceMap.getString("formattedTextFieldFecha.text")); // NOI18N
        formattedTextFieldFecha.setName("formattedTextFieldFecha"); // NOI18N

        textFieldNumeroFactura.setEditable(false);
        textFieldNumeroFactura.setText(resourceMap.getString("textFieldNumeroFactura.text")); // NOI18N
        textFieldNumeroFactura.setName("textFieldNumeroFactura"); // NOI18N

        javax.swing.GroupLayout panelDatosFacturaLayout = new javax.swing.GroupLayout(panelDatosFactura);
        panelDatosFactura.setLayout(panelDatosFacturaLayout);
        panelDatosFacturaLayout.setHorizontalGroup(
            panelDatosFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDatosFacturaLayout.createSequentialGroup()
                .addGap(94, 94, 94)
                .addGroup(panelDatosFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(labelTituloFactura)
                    .addGroup(panelDatosFacturaLayout.createSequentialGroup()
                        .addGroup(panelDatosFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(labelFecha)
                            .addComponent(labelNumero))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(panelDatosFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(formattedTextFieldFecha)
                            .addComponent(textFieldNumeroFactura, javax.swing.GroupLayout.DEFAULT_SIZE, 217, Short.MAX_VALUE))))
                .addContainerGap(127, Short.MAX_VALUE))
        );
        panelDatosFacturaLayout.setVerticalGroup(
            panelDatosFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDatosFacturaLayout.createSequentialGroup()
                .addComponent(labelTituloFactura)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDatosFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelNumero)
                    .addComponent(textFieldNumeroFactura, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDatosFacturaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(labelFecha)
                    .addComponent(formattedTextFieldFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(29, Short.MAX_VALUE))
        );

        panelDatosFactura.setBounds(240, 0, 490, 110);
        jLayeredPane1.add(panelDatosFactura, javax.swing.JLayeredPane.DEFAULT_LAYER);

        panelItems.setName("panelItems"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        tabla.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Cantidad", "Detalle", "Precio Unitario", "Precio Oferta", "Importe"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Integer.class, java.lang.Object.class, java.lang.Double.class, java.lang.Boolean.class, java.lang.Double.class
            };
            boolean[] canEdit = new boolean [] {
                true, false, false, true, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tabla.setName("tabla"); // NOI18N
        tabla.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                tablaPropertyChange(evt);
            }
        });
        jScrollPane1.setViewportView(tabla);

        buttonAgregar.setText(resourceMap.getString("buttonAgregar.text")); // NOI18N
        buttonAgregar.setName("buttonAgregar"); // NOI18N

        buttonEliminar.setText(resourceMap.getString("buttonEliminar.text")); // NOI18N
        buttonEliminar.setName("buttonEliminar"); // NOI18N

        javax.swing.GroupLayout panelItemsLayout = new javax.swing.GroupLayout(panelItems);
        panelItems.setLayout(panelItemsLayout);
        panelItemsLayout.setHorizontalGroup(
            panelItemsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 727, Short.MAX_VALUE)
            .addGroup(panelItemsLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(buttonAgregar)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(buttonEliminar)
                .addContainerGap(571, Short.MAX_VALUE))
        );
        panelItemsLayout.setVerticalGroup(
            panelItemsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelItemsLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelItemsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttonAgregar)
                    .addComponent(buttonEliminar))
                .addGap(7, 7, 7)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panelTotal.setName("panelTotal"); // NOI18N

        labelTotal.setText(resourceMap.getString("labelTotal.text")); // NOI18N
        labelTotal.setName("labelTotal"); // NOI18N

        labelSonPesos.setText(resourceMap.getString("labelSonPesos.text")); // NOI18N
        labelSonPesos.setName("labelSonPesos"); // NOI18N

        textFieldTotalPesos.setEditable(false);
        textFieldTotalPesos.setText(resourceMap.getString("textFieldTotalPesos.text")); // NOI18N
        textFieldTotalPesos.setName("textFieldTotalPesos"); // NOI18N

        textFieldSubTotal.setEditable(false);
        textFieldSubTotal.setText(resourceMap.getString("textFieldSubTotal.text")); // NOI18N
        textFieldSubTotal.setName("textFieldSubTotal"); // NOI18N

        labelSubTotal.setText(resourceMap.getString("labelSubTotal.text")); // NOI18N
        labelSubTotal.setName("labelSubTotal"); // NOI18N

        labelIvaPesos.setText(resourceMap.getString("labelIvaPesos.text")); // NOI18N
        labelIvaPesos.setName("labelIvaPesos"); // NOI18N

        textFieldIva.setEditable(false);
        textFieldIva.setName("textFieldIva"); // NOI18N

        javax.swing.GroupLayout panelTotalLayout = new javax.swing.GroupLayout(panelTotal);
        panelTotal.setLayout(panelTotalLayout);
        panelTotalLayout.setHorizontalGroup(
            panelTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelTotalLayout.createSequentialGroup()
                .addGap(444, 444, 444)
                .addGroup(panelTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(labelSubTotal)
                    .addComponent(labelIvaPesos)
                    .addGroup(panelTotalLayout.createSequentialGroup()
                        .addComponent(labelSonPesos)
                        .addGap(18, 18, 18)
                        .addComponent(labelTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(panelTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(textFieldSubTotal, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(textFieldIva, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(textFieldTotalPesos, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))
                .addContainerGap())
        );
        panelTotalLayout.setVerticalGroup(
            panelTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelTotalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(textFieldSubTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelSubTotal))
                .addGap(12, 12, 12)
                .addGroup(panelTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(textFieldIva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelIvaPesos))
                .addGap(10, 10, 10)
                .addGroup(panelTotalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(textFieldTotalPesos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(labelSonPesos))
                .addContainerGap())
        );

        buttonCancelar.setText(resourceMap.getString("buttonCancelar.text")); // NOI18N
        buttonCancelar.setName("buttonCancelar"); // NOI18N
        buttonCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonCancelarActionPerformed(evt);
            }
        });

        buttonAceptar.setText(resourceMap.getString("buttonAceptar.text")); // NOI18N
        buttonAceptar.setName("buttonAceptar"); // NOI18N
        buttonAceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                buttonAceptarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(panelTotal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jLayeredPane1)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(10, 10, 10)
                            .addComponent(panelIva, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addComponent(panelItems, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(panelDatosCliente, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap(588, Short.MAX_VALUE)
                        .addComponent(buttonAceptar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(buttonCancelar)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelDatosCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelIva, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelItems, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelTotal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(buttonCancelar)
                    .addComponent(buttonAceptar))
                .addContainerGap())
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-753)/2, (screenSize.height-693)/2, 753, 693);
    }// </editor-fold>//GEN-END:initComponents

    private void tablaPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_tablaPropertyChange
        ((ControllerVentaArticulo)controller).calcularTotal();
    }//GEN-LAST:event_tablaPropertyChange

    private void buttonCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonCancelarActionPerformed
        controller.cerrar();
    }//GEN-LAST:event_buttonCancelarActionPerformed

    private void buttonAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonAceptarActionPerformed
        ((ControllerVentaArticulo)controller).generarFactura();
    }//GEN-LAST:event_buttonAceptarActionPerformed

    private void comboBoxTipoFacturaItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_comboBoxTipoFacturaItemStateChanged
        // TODO add your handling code here:
    }//GEN-LAST:event_comboBoxTipoFacturaItemStateChanged


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton buttonAceptar;
    private javax.swing.JButton buttonAgregar;
    private javax.swing.JButton buttonCancelar;
    private javax.swing.JButton buttonEliminar;
    private javax.swing.ButtonGroup buttonGroupCondicionesVenta;
    private javax.swing.ButtonGroup buttonGroupTipoIva;
    private javax.swing.JCheckBox checkBoxConsumidorFinal;
    private javax.swing.JCheckBox checkBoxExcento;
    private javax.swing.JCheckBox checkBoxNoResponsable;
    private javax.swing.JCheckBox checkBoxResponsableInscripto;
    private javax.swing.JComboBox comboBoxTipoFactura;
    private javax.swing.JFormattedTextField formattedTextFieldFecha;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JLabel label1CondicionesVenta;
    private javax.swing.JLabel label1Telefono;
    private javax.swing.JLabel labelApellido;
    private javax.swing.JLabel labelCUIT;
    private javax.swing.JLabel labelDomicilio;
    private javax.swing.JLabel labelFecha;
    private javax.swing.JLabel labelIngresosBrutos;
    private javax.swing.JLabel labelIva;
    private javax.swing.JLabel labelIvaPesos;
    private javax.swing.JLabel labelNombre;
    private javax.swing.JLabel labelNombreEmpresa;
    private javax.swing.JLabel labelNumero;
    private javax.swing.JLabel labelRemito;
    private javax.swing.JLabel labelSonPesos;
    private javax.swing.JLabel labelSubTotal;
    private javax.swing.JLabel labelTituloFactura;
    private javax.swing.JLabel labelTotal;
    private javax.swing.JPanel panelCUIT;
    private javax.swing.JPanel panelCondicionesVenta;
    private javax.swing.JPanel panelDatosCliente;
    private javax.swing.JPanel panelDatosFactura;
    private javax.swing.JPanel panelItems;
    private javax.swing.JPanel panelIva;
    private javax.swing.JPanel panelLogo;
    private javax.swing.JPanel panelTotal;
    private javax.swing.JRadioButton radioButtonContado;
    private javax.swing.JRadioButton radioButtonCtaCte;
    private javax.swing.JTable tabla;
    private javax.swing.JTextField textFieldCUIT;
    private javax.swing.JTextField textFieldDomicilio;
    private javax.swing.JTextField textFieldIngresosBrutos;
    private javax.swing.JTextField textFieldIva;
    private javax.swing.JTextField textFieldNombre;
    private javax.swing.JTextField textFieldNumeroFactura;
    private javax.swing.JTextField textFieldRemito;
    private javax.swing.JTextField textFieldSubTotal;
    private javax.swing.JTextField textFieldTelefono;
    private javax.swing.JTextField textFieldTotalPesos;
    // End of variables declaration//GEN-END:variables

    public void setNumeroFactura(Long numeroFactura) {
        textFieldNumeroFactura.setText(numeroFactura.toString());
    }

    public void setFecha(Calendar fecha) {
        formattedTextFieldFecha.setValue(fecha.getTime());
    }


    
}
